package com.gxl.design.mementopattern;

import java.util.ArrayList;
import java.util.List;

/**
 * @remark --
 * @author: GuoXiaolin
 * @date 2019/4/19 14:09
 * @Version 1.0
 * @Derction
 */
public class CareTaker {

    private List<TextContent> textContents = new ArrayList<>();

    public void add(TextContent textContent){
        textContents.add(textContent);
    }

    public TextContent get(int i){
        return textContents.get(i);
    }

}


